package Examples;

import WhiskeyGui.MainGui;
import runInfo.TestThreadTemp;

/**
 * User: Mike
 * Date: 11/12/11
 *
 * this is a basic example of a separate thread
 */
public class NewThread {

 	public static void main(String[] args) throws InterruptedException {
		Thread threadGUI = new Thread((Runnable) new MainGui(null));
		threadGUI.start();
		Thread threadTemp = new Thread(new TestThreadTemp());
		threadTemp.start();

		int counter = 0;
		int maxTime = 10;
		while(threadGUI.isAlive()){
			threadGUI.join(1000); 																//wait max of 1 sec for messageloop thread to finish
		}
		threadTemp.stop();
	}
}
